import request from '@/utils/request'

// 查询支付订单记录列表
export function listPaymentOrders(query) {
  return request({
    url: '/system/paymentOrders/list',
    method: 'get',
    params: query
  })
}

// 查询支付订单记录详细
export function getPaymentOrders(orderId) {
  return request({
    url: '/system/paymentOrders/' + orderId,
    method: 'get'
  })
}

// 新增支付订单记录
export function addPaymentOrders(data) {
  return request({
    url: '/system/paymentOrders',
    method: 'post',
    data: data
  })
}

// 修改支付订单记录
export function updatePaymentOrders(data) {
  return request({
    url: '/system/paymentOrders',
    method: 'put',
    data: data
  })
}

// 删除支付订单记录
export function delPaymentOrders(orderId) {
  return request({
    url: '/system/paymentOrders/' + orderId,
    method: 'delete'
  })
}
